var mroad_len = round(room_height/32)
var pos_buildings = round((mroad_len*16)/18)
var temp_coords;
var b = 1
for (var r = 0;r <= mroad_len; r += 1)
    {
    tile_add(bck_road,0,0,32,32,argument[1]-16,argument[2]+(r*32),2)
    }
    
/*for (var r = 0;r <= pos_buildings; r += 1)
    {
    chance = choose(1,2,3)
    if chance = 1 or chance = 3
        {
        temp_coords[b,1] = argument[1] - 26
        temp_coords[b,2] = argument[2] +(r*18)
        b+=1
        }
    if chance = 2 or chance = 3
        {
        temp_coords[b,1] = argument[1] + 12
        temp_coords[b,2] = argument[2] +(r*18)
        b+=1
        }
    }

show_debug_message('morgan freeman')
      
for (var r = 1;r != b; r += 1)
    {
    astar_setobstacle(temp_coords[r,1],temp_coords[r,2])
    tile_add(bck_building,0,0,16,16,temp_coords[r,1],temp_coords[r,2],2)
    //instance_create(temp_coords[r,1],temp_coords[r,2],obj_building)
    //show_debug_message('building created at (' + string(temp_coords[r,1]) + ',' +string(temp_coords[r,2]) + ')')   
    }
    
